package org.issaclu.springbootmybatis.user.bo;

import org.issaclu.springbootmybatis.user.enums.Sex;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

public class UserDetailBo {

    // 更新时候用
    private long id;
    private String userId;
    private Sex sex;
    private String userName;
    private int age;
    private String introductionText;
    private Date birthday;
    /**
     * 按生日查询开始点
     */
    private Date birthdayStart;
    /**
     * 按生日查询结束点
     */
    private Date birthdayEnd;
    private int level;
    private MultipartFile avatar;

    public Date getBirthdayStart() {
        return birthdayStart;
    }

    public void setBirthdayStart(Date birthdayStart) {
        this.birthdayStart = birthdayStart;
    }

    public Date getBirthdayEnd() {
        return birthdayEnd;
    }

    public void setBirthdayEnd(Date birthdayEnd) {
        this.birthdayEnd = birthdayEnd;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIntroductionText() {
        return introductionText;
    }

    public void setIntroductionText(String introductionText) {
        this.introductionText = introductionText;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public MultipartFile getAvatar() {
        return avatar;
    }

    public void setAvatar(MultipartFile avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "UserDetailBo{" +
                "id=" + id +
                ", sex=" + sex +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                ", introductionText='" + introductionText + '\'' +
                ", birthday=" + birthday +
                ", level=" + level +
                '}';
    }
}
